package com.example.kotlinstudydemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.example.javademo.RxJavaExample

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        RxJavaExample.main(arrayOf())

        val textView: TextView = findViewById(R.id.tv)

        with(textView) {
            text = "测试"
            textSize = 20F
            setTextColor(ContextCompat.getColor(context, R.color.purple_200))
        }
    }
}